package com.tangyuan.ai.controller;

import com.tangyuan.ai.entity.model.AiMaskCategory;
import com.tangyuan.ai.service.AiMaskCategoryService;
import com.tangyuan.common.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("ai/maskCategory")
public class AiMaskCategoryController {

    @Autowired
    AiMaskCategoryService aiMaskCategoryService;

    @GetMapping("getAllMaskCategory")
    public Result<List<AiMaskCategory>> getAllMaskCategory(){
        return Result.ok(aiMaskCategoryService.getAllMaskCategory());
    }

}
